﻿<?xml version="1.0" encoding="utf-8" ?>
<Automation>

  <Given WorkItemType="Use Case">
    <When>
      <Condition FieldName="State" Type="String" Operator="Equal" Value="Active" />
    </When>
    <Then>      
      <CreateWorkItem WorkItemType="Task" RelationType="Child">
        <Fields>
          <Field FieldName="Title" Value="My Title" />
          <Field FieldName="Area" Value="[Default]\MyArea" />
          <Field FieldName="Iteration" Value="[Default]\Iteration 1" />
          <Field FieldName="Description" Value="nnoonononnooon" />
        </Fields>
      </CreateWorkItem>
    </Then>
  </Given>

  <Given WorkItemType="Use Case">
    <When>
      <Condition FieldName="State" Type="String" Operator="Equal" Value="Closed" />
    </When>
    <Then>
      <SetFieldValue FieldName="Title" Append="Work Item Closed" />
      <SetFieldValue FieldName="Description" Value="Work Item Closed" />
    </Then>
  </Given>

</Automation>



